<?php
  
  
  
      require_once "../framework.php";      
  import("file");

 /* 
$zip = new ZipArchive;
if ($zip->open('test.zip', ZipArchive::CREATE) === TRUE) {
    
    $zip->addFile('I:/Daten/snapol/htdocs/com/Abrechnung/description.html');
    
    
    $dir = getDir("/com/Abrechnung");
    
    
    for ($n=0; $n < sizeof($dir['filename']); $n++)
        {
     //   $zip->addFile($dir['full_filename'][$n], $dir['filename'][$n]); //, "web_" . $snapolDomain . "/" . $file_name['filename'][$n]);
        
        if (is_file($dir['full_filename'][$n]))
        $zip->addFile($dir['full_filename'][$n]); //, "web_" . $snapolDomain . "/" . $file_name['filename'][$n]);
     
     
       echo $dir['full_filename'][$n]."<br>";
        //    $zip->addFile($file_name['full_filename'][$n], $file_name['filename'][$n]);

        //    echo "zip file ".$file_name['full_filename'][$n]."<br>";
        }
    
    
    
    
    
    $zip->close();
    echo 'ok';
} else {
    echo 'Fehler';
}   */   

 
  
  
    
    
    
    import("export");
    exportSnapolZip();
    echo "erstellt";
  //  exportZipRekursiv("/com/Abrechnung", "/download/small_website.zip");
    //exportZip("/com/Abrechnung", "com_abrechnung.zip");
  
    
  
  
  
  
?>
